<?xml version="1.0" encoding="UTF-8"?>
<jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
        <ui:page binding="#{LerAlerta.page1}" id="page1">
            <ui:html binding="#{LerAlerta.html1}" id="html1">
                <ui:head binding="#{LerAlerta.head1}" id="head1">
                    <script>
                          function initAllRows() {
                           var table = document.getElementById("form1:table1");
                           table.initAllRows();
                          }
                    </script>
                    <ui:link binding="#{LerAlerta.link1}" id="link1" url="/resources/stylesheet.css"/>
                </ui:head>
                <ui:body binding="#{LerAlerta.body1}" id="body1" style="-rave-layout: grid">
                    <ui:form binding="#{LerAlerta.form1}" id="form1">
                        <div style="height: 102px; left: 0px; top: 0px; position: absolute; width: 762px">
                            <jsp:directive.include file="topo.jspf"/>
                        </div>
                        <div style="height: 454px; left: 0px; top: 104px; position: absolute; width: 206px">
                            <jsp:directive.include file="menu.jspf"/>
                        </div>
                        <div style="height: 40px; left: 0px; top: 560px; position: absolute; width: 758px">
                            <jsp:directive.include file="rodapev.jspf"/>
                        </div>
                        <ui:tabSet binding="#{LerAlerta.tabSet1}" id="tabSet1" selected="tab1" style="height: 454px; left: 208px; top: 104px; position: absolute; width: 554px">
                            <ui:tab binding="#{LerAlerta.tab1}" id="tab1" text="Alerta">
                                <ui:panelLayout binding="#{LerAlerta.layoutPanel1}" id="layoutPanel1" style="border-width: 1px; background-color: rgb(211, 224, 235); border-left-color: rgb(110, 127, 143); border-right-color: rgb(110, 127, 143); border-bottom-color: rgb(110, 127, 143); border-left-style: solid; border-right-style: solid; border-bottom-style: solid; height: 415px; position: relative; width: 553px; -rave-layout: grid">
                                    <ui:table augmentTitle="false" binding="#{LerAlerta.table1}" id="table1" paginateButton="true" paginationControls="true"
                                        style="height: 48px; left: 8px; top: 20px; position: absolute; width: 535px" width="535">
                                        <ui:tableRowGroup binding="#{LerAlerta.tableRowGroup1}" id="tableRowGroup1" rows="10"
                                            selected="#{LerAlerta.selectedState}" sourceData="#{SessionBean1.listaDataSourceAlerta}" sourceVar="currentRow">
                                            <ui:tableColumn binding="#{LerAlerta.tableColumn1}" id="tableColumn1" onClick="setTimeout(‘initAllRows()’,0)" selectId="#{LerAlerta.radioButton1.id}">
                                                <ui:radioButton binding="#{LerAlerta.radioButton1}" id="radioButton1" label=""
                                                    name="#{LerAlerta.radioButton1.id}" selected="#{LerAlerta.selected}" selectedValue="#{LerAlerta.selectedValue}"/>
                                            </ui:tableColumn>
                                            <ui:tableColumn binding="#{LerAlerta.tableColumn2}" headerText="Remetente" id="tableColumn2" sort="remetente">
                                                <ui:staticText binding="#{LerAlerta.staticText1}" id="staticText1" text="#{currentRow.value['remetente']}"/>
                                            </ui:tableColumn>
                                            <ui:tableColumn binding="#{LerAlerta.tableColumn3}" headerText="Assunto" id="tableColumn3" sort="assunto">
                                                <ui:staticText binding="#{LerAlerta.staticText2}" id="staticText2" text="#{currentRow.value['assunto']}"/>
                                            </ui:tableColumn>
                                            <ui:tableColumn binding="#{LerAlerta.tableColumn4}" headerText="Data" id="tableColumn4" sort="dataEnvio">
                                                <ui:staticText binding="#{LerAlerta.staticText3}" id="staticText3" text="#{currentRow.value['dataEnvio']}"/>
                                            </ui:tableColumn>
                                            <ui:tableColumn binding="#{LerAlerta.tableColumn5}" headerText="Prior" id="tableColumn5">
                                                <ui:staticText binding="#{LerAlerta.staticText4}" id="staticText4" text="#{currentRow.value['prioridade']}"/>
                                            </ui:tableColumn>
                                        </ui:tableRowGroup>
                                    </ui:table>
                                    <ui:button action="#{LerAlerta.btnEnviarNovoAlerta_action}" binding="#{LerAlerta.btnEnviarNovoAlerta}"
                                        id="btnEnviarNovoAlerta" style="height: 28px; left: 175px; top: 320px; position: absolute; width: 192px" text="Enviar Novo Alerta"/>
                                    <ui:alert binding="#{LerAlerta.alerta}" id="alerta" style="left: 8px; top: 360px; position: absolute; width: 533px"/>
                                    <ui:button action="#{LerAlerta.button2_action}" binding="#{LerAlerta.button2}" id="button2"
                                        style="height: 28px; left: 371px; top: 320px; position: absolute; width: 164px" text="Ler"/>
                                </ui:panelLayout>
                            </ui:tab>
                        </ui:tabSet>
                    </ui:form>
                </ui:body>
            </ui:html>
        </ui:page>
    </f:view>
</jsp:root>
